package com.zte.claa.inficombo.csa.app.service.gprscat1.mina;
/**
 * author:0283000106
 */
import org.apache.mina.filter.codec.demux.DemuxingProtocolCodecFactory;
import org.apache.mina.filter.codec.demux.MessageDecoder;
import org.apache.mina.filter.codec.demux.MessageEncoder;
import com.zte.claa.inficombo.csa.app.service.gprscat1.bean.GPRSDevCommand;


public class GPRSDevMsgCodecFactory extends DemuxingProtocolCodecFactory{
	private MessageDecoder decoder;
	private MessageEncoder<GPRSDevCommand> encoder;
	
	/**
	 * 编解码器工厂
	 * 
	 * @param decoder
	 * @param encoder
	 */
	public GPRSDevMsgCodecFactory(MessageDecoder decoder, MessageEncoder<GPRSDevCommand> encoder){
		super();
		this.decoder = decoder;
		this.encoder = encoder;
		this.addMessageDecoder(this.decoder);
		this.addMessageEncoder(GPRSDevCommand.class, this.encoder);
	}
}